package com.cloudoer.blog.service;

import com.cloudoer.blog.model.Album;
import com.cloudoer.blog.model.info.AlbumInfo;

import java.util.List;

public interface AlbumService {
    Album getById(String id);

    List<Album> getAll ();

    List<Album> getByPage (int pstart, int psize);

    List<Album> getByRanking();

    List<AlbumInfo> getByPageInfo (int pstart, int psize);

    List<AlbumInfo> getByRankingInfo();

    String add(Album album);

    int update(Album album);

    int delete(String id);

    int getCount();

    void endorse(String id);
}
